import API from "@/utils/request";

/**
 *
 * @param {Object} data 参数
 */

// 商品
export const GOODSLIST = data => {
  return API("user/shop/goodslist", data);
};
export const TAGLIST = data => {
  return API("sp/v1.Shop/tagList", data);
};
export const GETLIST = data => {
  return API("sp/v1.Shop/getlist", data);
};
export const GOODSLISTShop = data => {
  return API("sp/v1.Shop/goodslist", data);
};
export const COUPON_LIST = data => {
  return API("sp/v1.Coupon/coupon_list", data);
};
export const GETLISTShopClass = data => {
  return API("sp/v1.Shop/getlist", data);
};

// 会员卡
export const VIPCARDLIST = data => {
  return API("sp/v1.Vipcard/vipCardList", data);
};
export const AUTHORITYLIST = data => {
  return API("sp/v1.Vipcard/authorityList", data);
};
export const DELAUTHORITY = data => {
  return API("sp/v1.Vipcard/delAuthority", data);
};

// 门店
export const STORE_LIST = data => {
  return API("sp/v1.Store/store_list", data);
};

// 用户
export const SETBLACKLIST = data => {
  return API("sp/v1.Member/setBlackList", data);
};

// 配送
export const SETADDRESSDEPOT = data => {
  return API("sp/v1.Distribution/setAddressDepot", data);
};
export const DISTRIBUTIONTEMPLETELIST = data => {
  return API("sp/v1.Distribution/distributionTempleteList", data);
};
// 分享
export const SETSHARE = data => {
  return API("sp/v1.Vipcard/setShare", data);
};
